package ohmel;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public final class Exercise2 extends HttpServlet
{
  /**
	 * 
	 */
	private static final long serialVersionUID = -2299504620802640136L;
	public void doGet(HttpServletRequest request,HttpServletResponse response, HttpSession session)throws ServletException, IOException
	{
		sendPage(request, response);
	}
	
	public void doPost(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
    {
		
    }
	
   private void sendPage(HttpServletRequest request, HttpServletResponse response)
   throws ServletException, IOException
   {
	   PrintWriter o = response.getWriter();
	    o.print("<HTML><HEAD><TITLE>Exercise 2.1</TITLE></HEAD><BODY>");
	    
	      o.print("<FORM METHOD=POST>Please enter your name: "+
		      "<INPUT TYPE=TEXT NAME=\"name\">"+
		      "<INPUT TYPE=SUBMIT NAME=\"submit\" VALUE=\"Log in\">"+
		      "</FORM></BODY></HTML>");
   }
}